<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title>发布产品</title>
    <link rel="stylesheet" type="text/css" href="/magicflu/html/css/cmxform.css" />
    <link rel="stylesheet" type="text/css" href="/magicflu/html/css/skins/default/perfect-scrollbar.css" />
    <script src="/magicflu/html/js/jquery-1.2.6.pack.js"></script>
    <script src="/magicflu/html/js/form/MessageBox.js"></script>
    <script src="/magicflu/html/js/jquery-impromptu.1.4.js"></script>
    <script src="/magicflu/html/js/i18next-1.6.0.min.js"></script>
    <script src="/magicflu/html/js/jquery.validate.js"></script>
    <script type="text/javascript" src="/magicflu/html/js/perfect-scrollbar.jquery.js"></script>
    <script>
    function initPage() {
      var option = {            
                getAsync: false,
                ns: { 
                    namespaces: ['messagebox'], 
                    defaultNs: 'messagebox'
                },
                resGetPath: '/magicflu/html/js/locales/__lng__/__ns__.json'
            };
        i18n.init(option, function(t) {
            $(".nav").i18n();
        });
        $.validator.addMethod("verifyVersion", function(value, element) {
          var v_regex=/^[1-9]+.[0-9]+.[0-9]+.[0-9]+$/;
          value=""+value;
          if(value){
            if(!v_regex.test(value)){
              return false;
            }else{
              return true;
            }
          }else{
            return null;
          }
        }, "请按照规则填写版本号");
        $.validator.addMethod("verifyEName",function(value, element){
          var v_regex = /^[A-Za-z\s]+$/;
          value=""+value;
          if(value){
            if(!v_regex.test(value)){
              return false;
            }else{
              return true;
            }
          }else{
            return null;
          }
        },"只能输入字母和空格");
        $.validator.addMethod("verifyAppId",function(value, element){
          var v_regex = /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/;
          value=""+value;
          if(value){
            if(!v_regex.test(value)){
              return false;
            }else{
              return true;
            }
          }else{
            return null;
          }
        },"appId格式不正确，联系客服获取");
    }

    </script>
  </head>
  <body style="background:#fff;" onload="initPage()">
    <div id="app"></div>
    <!-- built files will be auto injected -->
  </body>
</html>
